Repository navigation
Fix CG alert 18198937: patch self-contained .NET runtime via SDK 10.0.403 - #84
Closed
Skylar (skylarnam) wants to merge 1 commit into
Closed
Skylar (skylarnam) wants to merge 1 commit into
Skylar (skylarnam) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Update
global.jsonfrom .NET SDK10.0.401to10.0.403to address CG alert 18198937, DOTNET-Security-SC-10.0.Why?
CG identifies
net10.0 application-selfcontainedinVSConfigFinder\VSConfigFinder.csproj: the self-contained deployment bundles a vulnerable runtime. The alert recommends SDK10.0.403.How?
Raise the SDK minimum to the exact recommended patched version in the same feature band. The affected project has
SelfContained=trueand noRuntimeFrameworkVersionoverride. The updated SDK selects the runtime used by the self-contained publication. PreserverollForward: featureand all project, feed and pipeline settings.Official runtime selection guidance: https://learn.microsoft.com/en-us/dotnet/core/deploying/runtime-patch-selection
Testing?
dotnet --version— passed; selected10.0.403.dotnet restore VSConfigFinder.sln --configfile nuget.config --verbosity minimal -p:NuGetInteractive=false— passed using the existing configured feed.dotnet test VSConfigFinder.Test --configuration Release --no-restore --verbosity minimal— passed; 6 tests, 0 failures, 0 skipped.dotnet publish VSConfigFinder --configuration Release --no-restore --verbosity minimal— passed for the local Windows ARM64 environment.dotnet msbuild VSConfigFinder -nologo -target:ProcessFrameworkReferences -getProperty:NETCoreSdkVersion,SelfContained,RuntimeIdentifier -getItem:RuntimeFramework,RuntimePack— passed; verified SDK10.0.403,SelfContained=true, andMicrosoft.NETCore.App.Runtime.win-arm64version10.0.14.Microsoft.NETCore.Appversion10.0.14.git diff --checkand scope check — passed; only the expected SDK version changed.No new unit tests were added because the fix changes the SDK pin only. Signed production packaging, other runtime architectures, and a fresh CG scan were not run locally.
Screenshots (optional)
Not applicable; no UI changes.
Additional information (optional)
CG alert: https://dev.azure.com/devdiv/0bdbc590-a062-4c3f-b0f6-9383f67865ee/_componentGovernance/209439?alertId=18198937&branchMoniker=main
This branch was created directly from
main, independently of #83. The code change is identical to #83: the same SDK patch addresses the SDK and self-contained runtime findings. Merge only one of these equivalent fixes; the other PR becomes redundant.Rebuild and republish the self-contained application after merging, then allow CG to rescan before considering the alert resolved.